<template>
  <div class="infodes-box">
    <h2>{{info.title}}</h2>
    <hr>
    <div v-html="info.content"></div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      id: this.$route.params.id,
      info: {}
    };
  },
  created() {
    this.getInfo();
  },
  methods: {
    getInfo() {
      this.$http.get("api/goods/getdesc/" + this.id).then(res => {
        this.info = res.body.message[0];
      });
    }
  }
};
</script>
<style lang="scss">
.infodes-box {
  padding: 0 3px;
  h2 {
    text-align: center;
    font-size: 14px;
  }
  div {
    font-size: 12px;
  }
}
</style>